package com.atguigu03._extends.exer1;

/**
 * @author NoobMaster69  * @date 2024/5/30 0030 星期四 13:45
 */
public class ManKind {
    private int sex;
    private int salary;

    public void manOrWoman(){
        if(sex == 1){
            System.out.println("man");
        }else if(sex == 0){
            System.out.println("woman");
        }else {
            System.out.println("输入不合法");
        }
    }

    public void employeed(){
        if(salary == 0){
            System.out.println("no job");
        }else {
            System.out.println("job");
        }
    }
}
